<template>
  <div style="background-color: #f0f2f5;height:1000px;padding:30px;">
    <!-- <div class="dashboard-text">name: {{ name }}</div> -->
    <el-row :gutter="20">
      <el-col :span="6"><div class="grid-content top">公告</div></el-col>
      <el-col :span="6"><div class="grid-content top">消息</div></el-col>
      <el-col :span="6"><div class="grid-content top">异常</div></el-col>
      <el-col :span="6"><div class="grid-content top">日志</div></el-col>
    </el-row>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
// import adminDashboard from './admin'
// import editorDashboard from './editor'

export default {
  // components: { adminDashboard, editorDashboard },
  // data() {
  //   return {
  //     currentRole: 'adminDashboard'
  //   }
  // },
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    // margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
.top{
  height: 100px;
  line-height: 100px;
  background-color: #fff;
  text-align: center;
  color: rgba(0,0,0,.45);
  font-size: 16px;
}
.el-row {
    margin-bottom: 20px;
    &:last-child {
      margin-bottom: 0;
    }
  }
  .el-col {
    border-radius: 4px;
  }
  .bg-purple-dark {
    background: #99a9bf;
  }
  .bg-purple {
    background: #d3dce6;
  }
  .bg-purple-light {
    background: #e5e9f2;
  }
  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }
  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }
</style>
